function Out = MyCircWinAvg(Input, WinNum, varargin)
N = length(Input);
Out = zeros(1,N);
if mod(WinNum,2) == 0
    WinNum = WinNum + 1;
end

Out = Input;
% Half Window Number
HalfWinNum = (WinNum-1)/2;

% Calculating Window Sum
for i = 1:HalfWinNum
    Out = Out + circshift(Input,i) + circshift(Input,-i);
end
Out = Out/WinNum;

end